import request from '@/util/request'

/**
 * 用户登录
 * @param {*} data
 * @returns
 */
export const login = (data) => {
  return request.post('/login', data)
}
/**
 * 获取当前用户信息
 * @param {}} data
 * @returns
 */
export const userInfo = (data) => {
  return request.post('/user/info', data)
}

/**
 * 用户退出
 * @param {*} data
 * @returns
 */
export const logout = (data) => {
  return request.post('/logout', data || {})
}
